package cn.ibobo.lease.admin.dao;

import cn.ibobo.lease.common.base.BaseMapper;
import cn.ibobo.lease.common.dto.UserCouponDTO;
import cn.ibobo.lease.common.dto.UserDTO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 会员信息表数据层处理接口
 * @Author lililiang
 * @Date 2018-12-13 18:36:40
 */
@Mapper
public interface UserMapper extends BaseMapper<UserDTO, String>{

    /**
     * @Description 会员充/退押金
     * @Author lililiang
     * @Date 2019/2/13 19:11
     * @Param [entityDTO]
     * @Return java.lang.Integer
     */
    Integer deposit(UserDTO entityDTO);

    /**
     * @Description 平台赠送点金券
     * @Author lililiang
     * @Date 2019/2/16 18:19
     * @Param [entityDTO]
     * @Return java.lang.Integer
     */
    Integer coupon(UserDTO entityDTO);

    /**
     * @Description 充值
     * @Author lililiang
     * @Date 2019/2/16 19:11
     * @Param [user]
     * @Return java.lang.Integer
     */
    Integer balance(UserDTO user);

    /**
     * @Description 增加/减少积分
     * @Author lililiang
     * @Date 2019/2/17 13:15
     * @Param [user]
     * @Return java.lang.Integer
     */
    Integer point(UserDTO user);
}
